import request from "../../sdk/utils/request";

export const getAll = (data) => {
  return request({
    url: "/api/user/getAll",
    method: "post",
    data: data,
  });
};

export const add = (data) => {
  return request({
    url: "/api/user/add",
    method: "post",
    data: data,
  });
};

export const update = (data) => {
  return request({
    url: "/api/user/update",
    method: "post",
    data: data,
  });
};

export const remove = (id) => {
  return request({
    url: "/api/user/remove",
    method: "get",
    params: {
      id: id,
    },
  });
};
